package com.zhanglijie.base.volatileLearn;

/**
 * @author zhanglijie
 * @version 1.0
 * @since 1.1.0 2022/5/22 0022 17:03
 * 查看volatile的底层
 */
public class VolatileDetailWatch {
    private  volatile static int mx1;
    private static int mx2;
    private static int mx3;
    private static int mx4;
    private static int mx5;
    private static int mx6;

    public static void main(String[] args) {
            increace(1);
    }

    private static void increace(int i) {
        mx1 = i+1;
        mx2 = i+2;
        mx3 = i+3;
        mx4 = i+4;
        mx5 = i+5;
        mx6 = i+6;
    }

}


